package data;

import java.io.Serializable;
import java.util.ArrayList;

import annotation.*;

@Table (name="ordonnance")
public class Ordonnance extends Data implements Serializable {

	/**
	 * 
	 */
	@Ignore
	private static final long serialVersionUID = -3940009008647091111L;
	@Id (autoIncrement=true)
	private Integer id_ordonnance;
	private String date_ordonnance;
	private String description_ordonnance;
	private String numero_securite_sociale_patient;
	private String id_medecin;
	@Ignore
	private ArrayList<Medicament> listeMedicaments;
	
	public Ordonnance(Integer id_ordonnance, String date_ordonnance,
			String description_ordonnance,
			String numero_securite_sociale_patient, String id_medecin) {
		super();
		this.id_ordonnance = id_ordonnance;
		this.date_ordonnance = date_ordonnance;
		this.description_ordonnance = description_ordonnance;
		this.numero_securite_sociale_patient = numero_securite_sociale_patient;
		this.id_medecin = id_medecin;
	}
	
	public Ordonnance(Integer id_ordonnance, String date_ordonnance,
			String description_ordonnance,
			String numero_securite_sociale_patient, String id_medecin,  ArrayList<Medicament> listeMedicaments) {
		super();
		this.id_ordonnance = id_ordonnance;
		this.date_ordonnance = date_ordonnance;
		this.description_ordonnance = description_ordonnance;
		this.numero_securite_sociale_patient = numero_securite_sociale_patient;
		this.id_medecin = id_medecin;
		this.listeMedicaments = listeMedicaments;
	}
	
	public Ordonnance(String date_ordonnance,
			String description_ordonnance,
			String numero_securite_sociale_patient, String id_medecin) {
		super();
		this.date_ordonnance = date_ordonnance;
		this.description_ordonnance = description_ordonnance;
		this.numero_securite_sociale_patient = numero_securite_sociale_patient;
		this.id_medecin = id_medecin;
	}

	public Ordonnance(String description_ordonnance,
			String numero_securite_sociale_patient, String id_medecin) {
		super();
		this.description_ordonnance = description_ordonnance;
		this.numero_securite_sociale_patient = numero_securite_sociale_patient;
		this.id_medecin = id_medecin;
	}
	
	public Ordonnance() {
		super();
	}

	public String getDate_ordonnance() {
		return date_ordonnance;
	}

	public void setDate_ordonnance(String date_ordonnance) {
		this.date_ordonnance = date_ordonnance;
	}

	public String getDescription_ordonnance() {
		return description_ordonnance;
	}

	public void setDescription_ordonnance(String description_ordonnance) {
		this.description_ordonnance = description_ordonnance;
	}

	public String getNumero_securite_sociale_patient() {
		return numero_securite_sociale_patient;
	}

	public void setNumero_securite_sociale_patient(
			String numero_securite_sociale_patient) {
		this.numero_securite_sociale_patient = numero_securite_sociale_patient;
	}

	public String getId_medecin() {
		return id_medecin;
	}

	public void setId_medecin(String id_medecin) {
		this.id_medecin = id_medecin;
	}

	public Integer getId_ordonnance() {
		return id_ordonnance;
	}

	public void setId_ordonnance(Integer id_ordonnance) {
		this.id_ordonnance = id_ordonnance;
	}
	
	public ArrayList<Medicament> getListeMedicaments() {
		return listeMedicaments;
	}

	public void setListeMedicaments(ArrayList<Medicament> listeMedicaments) {
		this.listeMedicaments = listeMedicaments;
	}
	

}
